#ifndef NETELEVATORBACKDATACMD_H
#define NETELEVATORBACKDATACMD_H

#include "Command/BaseCmd.h"
#include "Protocol/NetPointProtocol.h"
#include "Protocol/PointProtocol.h"

class NetElevatorBackDataCmd : public BaseCmd
{
    Q_OBJECT
public:

    enum{FunctionCode = NetPointProtocol::ElevatorData};
    Q_INVOKABLE explicit NetElevatorBackDataCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    quint8 Elevatorfloor();
    quint8 Elevatorstate();
    quint8 Elevatornum();


private:
    quint16 data;
    quint8 m_state;
    quint8 m_Elevatornum;
    quint8 m_floor;
};

#endif // NETELEVATORBACKDATACMD_H
